#!/bin/bash -ex

QI_PROJECT="/home/aleks/build_dirs/koala_space/arkoala_framework/qt_proj"

mkdir -p ${BUILD_DIR}
mkdir -p ${QI_PROJECT}

cd ${BUILD_DIR}
rm -rf .* * || echo "OK"

meson setup ${MESON_ARGS} ${BUILD_DIR} ${MESON_DIR}

cd ${QI_PROJECT}
cp ${BUILD_DIR}/compile_commands.json compile_commands.json
sed -i 's|../../../../repos/|/home/aleks/repos/|g' compile_commands.json
# sed -i 's|../../../../../repos/|/home/aleks/repos/|g' compile_commands.json

echo "WIN_WIN"
